package main

import (
	grpc2 "google.golang.org/grpc"
	"online-medical-consultation/common/consul"
	"online-medical-consultation/common/grpc"
	"online-medical-consultation/common/models/es"
	"online-medical-consultation/common/models/mysql"
	"online-medical-consultation/common/models/redis"
	"online-medical-consultation/common/nacos"
	"online-medical-consultation/service/config"
	"online-medical-consultation/service/internal"
)

func main() {
	config.GetViper()
	consul.Consul()
	nacos.NewNacos()
	mysql.InitMysql()
	redis.InitRedis()
	es.InitEs()
	grpc.RegisterGrpc(func(server *grpc2.Server) {
		internal.Register(server)
	})
}
